<?php
class Sexo extends Zend_Db_Table{
	protected $_primary='id_sexo';
	protected $_name   ='sexo';

	public function buscar(){
		$db = Zend_Registry::get('db');
		$sql= 'select id_sexo, ds_sexo
                 from sexo';
		return $db->query($sql)->fetchAll();
	}
	
	public function load($id){
		$row = $this->find($id)->current();
    	$this->id_sexo 			= $row["id_sexo"];
    	$this->ds_sexo 			= $row["ds_sexo"];
	}
}